#ifndef PALYER_H
#define PALYER_H

#include <QObject>

class myPalyer : public QObject
{
    Q_OBJECT
public:
    explicit myPalyer(QObject *parent = nullptr);
    void generateThumbnail(const QString &videoPath, const QString &thumbnailPath);
    void getFilesInDirectory(const QString& folderPath);
    QString changeFileExtension(const QString& oldPath, const QString& newExtension);

    uint8_t videoCount = 0;//视频总数
    uint8_t i = 0;//当前统计的视频数

signals:
    void thumbnailGenerated(const QString &videoPath,const QString &storagePath);

private slots:

private:
    QStringList processedFiles;         // 已处理的文件路径列表

};

#endif // PALYER_H
